from django.db import models

# Create your models here.


class FundDbInfo(models.Model):
    class Meta:
        permissions = (
            ("view_db_info", "Can view DBINFO"),
            ("add_db_info", "Can add DBINFO"),
            ("change_db_info", "Can change DBINFO"),
            ("delete_db_info", "Can delete DBINFO"),
        )
        db_table = 'FUND_DB_INFO'
        verbose_name = '数据库信息'
        verbose_name_plural = '数据库信息'

    id = models.AutoField(primary_key=True,blank=True)
    username = models.CharField(max_length=255, null=True, blank=True)
    password = models.CharField(max_length=255, null=True, blank=True)

    def __unicode__(self):
        return self.username